const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})

module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'https://apis.map.qq.com/ws/location/v1/ip',  // 需要跨域的目标url
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': '',  // 将请求的路径重写为 /api 后为空
        },
      },
    },
  },
};